package com.byxy.service.impl;

import java.io.InputStream;
import java.util.List;

import javax.annotation.Resource;
import javax.transaction.Transactional;

import org.springframework.stereotype.Service;

import com.byxy.dao.BookDao;
import com.byxy.entity.Book;
import com.byxy.service.BookService;
@Service("BookService")
@Transactional
public class BookServiceImpl implements BookService {
	@Resource
	private BookDao bookDao;
	@Override
	public List<Book> find(Integer pos, Integer rows) {
		return bookDao.find(pos, rows);
	}

	@Override
	public long count() {
		return bookDao.count();
	}

	@Override
	public void add(Book book) {
		bookDao.add(book);		
	}

	@Override
	public void delete(String id) {
		Book book = new Book();
		book.setId(id);
		bookDao.delete(book);		
	}

	@Override
	public void update(Book book) {
		bookDao.update(book);		
	}

	@Override
	public void addEXCL(InputStream InputStream) {
		// TODO Auto-generated method stub
		
	}

}
